<template>
  <div>
    <div class="item" v-for="(item,index) in list" :key=index>
      <div class="item-title border-bottom" >
        <img class="item-list-img" src="//s.qunarzz.com/piao/image/pc/detail/qunar_recommand.png" alt="">
        <span class="item-title-icon">{{item.title}}</span>
      </div>
      <div class="item-children" v-if="item.children" >
        <detail-list :list="item.children"></detail-list>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name:"DetailList",
    props:{
      list:Array
    },
    data() {
      return {
        
      }
    },
  }
</script>

<style lang="stylus" scoped>
  .item
    .border-bottom
      &:before
        border-color #cccccc
    
    .item-title
      .item-list-img
        width .44rem
      .item-title-icon
        line-height .76rem
        padding-left .2rem
        color #666
        border-bottom #ccc
    .item-children
      padding-left .2rem
</style>